Trees | Index | Help |
|
---|
Module database :: Class Database |
|
Method Summary | |
---|---|
@param filename: database filename... | |
__del__(self)
| |
__enter__(self)
| |
__exit__(self,
ex_type,
ex_value,
tb)
| |
doestableexist(self,
tablename)
| |
getcolumns(self,
tablename,
onlynames)
| |
Executes statement and return a generator of the results | |
execute statements repeatedly with params | |
updateindirecttable(self,
tablename,
indirects)
| |
Alters the named table by deleting the specified columns, and adding the listed columns | |
Gets a list of values (indirect) as described by what | |
_rowtrace(self,
*row)
| |
_sqltrace(self,
cmd,
bindings)
| |
Deletes old entries from the database. | |
Return the number of additions, deletions, and modifications made to this table over time. | |
getmajordictvalues(*args,
**kwargs)
| |
Loads a list of items (eg categories) | |
Just save a list of items (eg categories). | |
This is the entrypoint for saving a first level dictionary such as the phonebook or calendar. |
Method Details |
---|
__init__(self,
filename,
virtualtables=None)
|
sql(self, statement, params=())Executes statement and return a generator of the results |
sqlmany(self, statement, params)execute statements repeatedly with params |
_altertable(self, tablename, columnstoadd, columnstodel, createindex=0)Alters the named table by deleting the specified columns, and adding the listed columns
|
_getindirect(self, what)Gets a list of values (indirect) as described by what
|
deleteold(*args, **kwargs)Deletes old entries from the database. The deletion is based on either criterion of maximum values or age of values matching.
|
getchangescount(*args, **kwargs)Return the number of additions, deletions, and modifications made to this table over time. Expected fields containted in this table: __timestamp__,__deleted__, __uid__ Assuming that both __rowid__ and __timestamp__ values are both ascending |
loadlist(*args, **kwargs)Loads a list of items (eg categories) |
savelist(*args, **kwargs)Just save a list of items (eg categories). There is no versioning or transaction history. Internally the table has two fields. One is the actual value and the other indicates if the item is deleted. |
savemajordict(*args, **kwargs)This is the entrypoint for saving a first level dictionary such as the phonebook or calendar. |
Trees | Index | Help |
|
---|
Generated by Epydoc 2.1 on Fri Aug 15 18:58:32 2008 | http://epydoc.sf.net |